home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
New Perspectives on Computer Concepts
/
New Perspectives on Computer Concepts.iso
/
np2010c
/
L02a.swf
/
scripts
/
QuizSuperClass.as
< prev
next >
Wrap
Text File
|
2007-12-30
|
525b
|
23 lines
_global.Quiz = function()
{
this.total_correct = 0;
this.total_wrong = 0;
this.quest_to_ask = 0;
this.activity_ID = undefined;
this.activity_name = undefined;
};
_global.Quiz.prototype = new Object();
Object.registerClass("QuizSuperClass",Quiz);
Quiz.prototype.countScore = function(weightNum)
{
if(weightNum < 0)
{
this.total_wrong += Math.abs(weightNum);
}
else
{
this.total_correct += Number(weightNum);
}
this.quest_to_ask = this.quest_to_ask - 1;
};